local CommonOHOH = _G.CommonOHOH;
local M = CommonOHOH.class.new(script, CommonOHOH.files.BaseComponent())

local Client_AudioManager = _G.ClientOHOH.load.Client_AudioManager();
local Tool=_G.CommonOHOH.load.WeaponTool();



function M.new(self,...)
	return M(self,...);
end;

function M.ctor(self, parent)
	M.super.ctor(self, parent);

    self.AttackAudioId= Client_AudioManager:LoadSound(Tool.GetWeaponArt(self.parent:GetEquipId()).Audio.attack)

    --开始攻击是播放声音
    self.parent.StartAttackEvent:Connect(function(pos)
        Client_AudioManager:PlayGloble(self.AttackAudioId);
    end)
    
end;

function M.dtor(self)
	M.super.dtor(self);
end;


return M